package com.example.mapper;

import com.example.pojo.User;
import com.example.pojo.mobile.MobileMedicalPolicy;
import com.example.pojo.mobile.PersonalVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MobileMapper {
    User getUserByUname(@Param("uname") String uname);

    int addUser(@Param("user") User user);

    User getUserByNameAndPwd(@Param("name") String uname, @Param("pwd") String md5Password);

    List<MobileMedicalPolicy> getLastPolicy();

    List<MobileMedicalPolicy> getPolicyList();

    PersonalVo getUserByName(String username);

    PersonalVo getUserInfoBuUserId(Integer userId);

    int updateUserInfoByUserId(@Param("userId") Integer userId, @Param("headImg") String headImg);
}
